package apiUtils.models;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/8/21.
 */

public final class OrderModel implements Parcelable {
    public static final Parcelable.Creator<OrderModel> CREATOR = new Parcelable.Creator<OrderModel>() {
        @Override
        public OrderModel createFromParcel(Parcel source) {
            return new OrderModel(source);
        }

        @Override
        public OrderModel[] newArray(int size) {
            return new OrderModel[size];
        }
    };
    private String applicationName;
    private String applicationId;
    private String orderNumber;
    private String orderMoney;

    public OrderModel() {
    }

    public OrderModel(String applicationName, String applicationId, String orderNumber, String orderMoney) {
        this.applicationName = applicationName;
        this.applicationId = applicationId;
        this.orderNumber = orderNumber;
        this.orderMoney = orderMoney;
    }

    protected OrderModel(Parcel in) {
        this.applicationName = in.readString();
        this.applicationId = in.readString();
        this.orderNumber = in.readString();
        this.orderMoney = in.readString();
    }

    public String getApplicationName() {
        return applicationName;
    }

    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }

    public String getApplicationId() {
        return applicationId;
    }

    public void setApplicationId(String applicationId) {
        this.applicationId = applicationId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getOrderMoney() {
        return orderMoney;
    }

    public void setOrderMoney(String orderMoney) {
        this.orderMoney = orderMoney;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.applicationName);
        dest.writeString(this.applicationId);
        dest.writeString(this.orderNumber);
        dest.writeString(this.orderMoney);
    }
}
